<%  if(docs != null && docs.length > 0){ %>
<% for(var i = 0;i < docs.length;i++){ %>
<div class="bs-callout">
    <h4>
        <span class="label label-default"><%=((docs[i].original)?"转":"原")%></span>
        <a href="/content/detail?id=<%= docs[i]._id %>&view=contentDetail"
           title="<%= docs[i].name %>"><%= docs[i].name.length > 50 ? docs[i].name.substring(0, 50) + "..." : docs[i].name %></a>
    </h4>

    <div class="clearfix"></div>
    <div class="media color-gray">
        <span title="作者"><i class="glyphicon glyphicon-user"></i>&nbsp;<%= docs[i].realName?docs[i].realName:docs[i].userName %></span>
        <span title="分类"><i class="glyphicon glyphicon-tag col-sm-offset-1"></i>&nbsp;<%- docs[i].categoryName %></span>
                        <span title="发布时间"><i class="glyphicon glyphicon-time  col-sm-offset-1"></i>&nbsp;
                            <%=: docs[i].createTime | format %>
                        </span>
        <span title="浏览量"><i class="glyphicon glyphicon-eye-open  col-sm-offset-1"></i>&nbsp;<%= docs[i].view %></span>
    </div>
</div>
<% } %>
<%- include /common/pager%>
<% }else{ %>
<div class="alert alert-warning" role="alert">暂无日志!</div>
<% } %>